package com.lpf.back.service.interfaces;

import com.lpf.back.common.CommonRes;
import com.lpf.back.domain.Activity;
import com.lpf.back.domain.User;
import com.lpf.back.domain.vo.ActivityUserVO;
import com.lpf.back.domain.vo.UserDynamicVO;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface ActivityService {

    List<Activity> getAllActivity();

    int releaseActivity(Activity activity);

    Activity getActivity(Integer id);

    int updateActivity(HttpServletRequest request, String title, String description, HttpSession session);

    CommonRes participateActivity(Integer userid, Integer activityid);

    Activity likeActivity(Integer userid, Integer activityid);

    List<UserDynamicVO> getUserList(Integer activityid);

    List<ActivityUserVO> getMyActivity(Integer userid);
}
